/**
 * 
 */
package adnotatio.client.annotator.model;

import adnotatio.common.event.Event;

/**
 * This event is fired when a new content to annotate is activated.
 * 
 * @author kotelnikov
 */
public class OnNewContentEvent extends Event {

    /**
     * The HTML content to annotate
     */
    private final String fHtmlContent;

    /**
     * This constructor activates the content to annotate
     * 
     * @param htmlContent the HTML content to annotate
     */
    public OnNewContentEvent(String htmlContent) {
        super(OnNewContentEvent.class);
        fHtmlContent = htmlContent;
    }

    /**
     * Returns the HTML content to annotate
     * 
     * @return the HTML content to annotate
     */
    public String getHtmlContent() {
        return fHtmlContent;
    }

}
